package com.candoo.root.security.domain.auth;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;

/**
 * @ClassName:  User
 * @Description:TODO(描述这个类的作用)
 * @author: i@mxpio.com
 * @date:   2020年4月29日 下午4:46:31      
 * @Copyright:  https://gitee.com/i_mxpio
 */

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @ApiModelProperty(value = "用户名", required = true)
    @Size(min=6, max=20)
    private String name;
    @ApiModelProperty(value = "密码", required = true)
    @Size(min=8, max=20)
    private String password;
}
